<?php
/**
 * File : ForgotFormGenerator.php
 * Created by Ludovic Reenaers
 * Created on  4 nov. 2010
 * lreenaers@hotmail.com
 */
class ForgotFormGenerator extends Generator{
	function setUp(){
		$labels = array('{ERROR-HERE}','{encoding}','{url}','{maillabel}','{mailinfo}','{forgotbutton}');
		$values = array($this->error,$_SESSION['encoding'],$_SESSION['config']->controler,$this->translator->mail,$this->translator->mailinfo,$this->translator->forgotbutton);
		$template = file_get_contents("html/templates/forgot");
		$this->content .=str_replace($labels,$values,$template);
	}
	function dump(){
		$this->setUp();
		return $this->content;
	}
}
?>